package com.wcy.feign.resource;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wcy.entity.ResourceTagMapping;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "cloud-provider-resource", contextId = "FeignResourceTagMappingService")
public interface FeignResourceTagMappingService {
    @GetMapping("resourceTagMapping/page")
    public ResponseEntity<Page<ResourceTagMapping>> getPage(@RequestParam(name = "pageNum",defaultValue = "1") int pageNum,
                                                            @RequestParam(name = "pageSize",defaultValue = "10") int pageSize);
    @GetMapping("resourceTagMapping/list")
    public ResponseEntity<List<ResourceTagMapping>> getList();
    @PostMapping("resourceTagMapping/add")
    public ResponseEntity<Void> add(ResourceTagMapping resourceTagMapping);
    @PutMapping("resourceTagMapping/update")
    public ResponseEntity<Void> update(ResourceTagMapping resourceTagMapping);
    @DeleteMapping("resourceTagMapping/delete/{id}")
    public ResponseEntity<Void> delete(@PathVariable("id") Integer id);
}
